package com.example.petplatform.dao;

import com.example.petplatform.entity.Param.Params;
import com.example.petplatform.entity.Pet;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface PetDao extends Mapper<Pet> {
    List<Pet> getAllPets();
    
    List<Pet> petSearch(@Param("params") Params params);

    /**
     * 获取宠物详情
     */
    Pet getPetDetail(@Param("id") Long id);

}
